<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>



        var name='the window';
        var obj={
            name:'my object',
            getFun:function (){



                var fn= function (){


                  console.log(this.name)   //the window     因为fn函数 是window调用的    this指向 window对象
              }

              return fn;
            }

        }

        obj.getFun()();





</script>
</body>
</html>